import http from '@/plugins/axios/index.js';

// 注册短信接口
export const phoneCodeNoUser = (params) => {
  return http(`/yjz-sso/lawtrain/getPhoneCodeNoUser.do`, params, {
    method: 'GET'
    //isAuth: false
  }).then((res) => res);
};

// 用户注册接口
export const lawTrainRegister = (params) => {
  return http(`/yjz-sso/lawtrain/lawTrainRegister.do`, params, {
    method: 'POST'
    //isAuth: false
  }).then((res) => res);
};

// // 修改密码短信接口
// export const phoneCode = params => {
//   return http(`/yjz-sso/lawtrain/phoneCode.do`, params, {
//     method: 'GET',
//     //isAuth: false
//   }).then(res => res);
// };

// 修改密码短信接口
export const phoneCode = (params) => {
  return http(`/yjz-sso/lawtrain/getPhoneCodeHasUser.do`, params, {
    method: 'GET'
    //isAuth: false
  }).then((res) => res);
};
// 手机号修改密码
export const setNewPassword = (params) => {
  return http(`/yjz-user/lawtrain/pcUserInfo/set_new_password.do`, params, {
    method: 'GET'
  }).then((res) => res);
};
